#include <iostream>
#include <string>
using namespace std;

class BasePage {
public:
    void header() {
        cout<<"header"<<endl;
    }

    void footer() {
        cout<<"footer"<<endl;
    }

    void left() {
        cout<<"left"<<endl;
    }

};

class JavaPage : public BasePage {
public:
    void content() {
        cout<<"java"<<endl;
    }
};

class PhpPage : public BasePage {
public:
    void content() {
        cout<<"php"<<endl;
    }
};

class PythonPage : public BasePage {
public:
    void content() {
        cout<<"python"<<endl;
    }
};

class CppPage : public BasePage {
public:
    void content() {
        cout<<"C++"<<endl;
    }
};

int main() {

    JavaPage java1;
    PhpPage php1;
    PythonPage py1;
    CppPage cpp1;

    java1.content();
    php1.content();
    py1.content();
    cpp1.content();
    return 0;
}